package com.slofzx.nuoda.evaluation.param.enums;

import com.slofzx.nuoda.common.EnumConfig;
import com.slofzx.nuoda.common.config.Type;


@EnumConfig(id="project-type-analysis",name = "项目分析类型")
public enum ProjectTypeAnalysisEnum implements Type {

    TOTAL_INVEST("totalInvest", "建设投资(亿元)", 1.0),
    NEW_WELL("infWellCount", "基建井数(口)", 2.0),
    NEW_CAPACITY("newCapacity", "新建产能(万吨)", 3.0),
    NET_PROFIT("netProfit", "净利润(亿元)", 4.0),
    MILLION_TON_PRODUCTIVITY_INVEST("mTProductivityInvest", "百万吨产能投资(亿元)", 5.0),
    WELL_INVEST("wellInvest", "单井投资(万元)", 6.0),
    WELL_EOR("wellEor", "单井EUR(吨)", 7.0),
    DRILL_WELL_COUNT("drillWellCount", "新钻井数(口)", 8.0),
    UNIT_OPERATE_COST_DOLLAR("unitOperateCostDollar", "单位操作成本(美元/桶)", 9.0),
    UNIT_TOTAL_OPERATE_COST_DOLLAR("unitTotalOperateCostDollar", "单位完全成本(美元/桶)", 10.0),
    ;
    
    private String id;
    private String name;
    private double sort;

    private ProjectTypeAnalysisEnum(String id, String name, double sort) {
        this.id = id;
        this.name = name;
        this.sort = sort;
    }

    @Override
    public String getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public double getSort() {
        return this.sort;
    }

    public static ProjectTypeAnalysisEnum getEnum(String id) {
        ProjectTypeAnalysisEnum[] var1 = values();
        int var2 = var1.length;
        for(int var3 = 0; var3 < var2; ++var3) {
            ProjectTypeAnalysisEnum dataTypeEnum = var1[var3];
            if (dataTypeEnum.getId().equals(id)) {
                return dataTypeEnum;
            }
        }
        return null;
    }
}
